/*
 * Copyright (C) 2010 M. Hautle.
 * 
 * This file is part of SimpleEL.
 * 
 * SimpleEL is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation, either version 3 of the License, or (at your option) any later version.
 * 
 * SimpleEL is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
 * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public License along with SimpleEL. If not, see <http://www.gnu.org/licenses/>.
 */
package ch.simpleel.data;

/**
 * Bean with primitive types.
 * 
 * @author M. Hautle
 */
public class PrimitiveTypeBean {
    /**
     * Property constant for {@link #getArray()}/{@link #setArray(short[])}. Type short[].
     */
    public static final String ATTR_ARRAY = "array";

    /**
     * Property constant for {@link #getSaldo()}/{@link #setSaldo(float)}. Type float.
     */
    public static final String ATTR_SALDO = "saldo";

    /**
     * Property constant for {@link #getBig()}/{@link #setBig(double)}. Type double.
     */
    public static final String ATTR_BIG = "big";

    /**
     * Property constant for {@link #getValue()}/{@link #setValue(int)}. Type int.
     */
    public static final String ATTR_VALUE = "value";

    /**
     * Property constant for {@link #getAge()}/{@link #setAge(short)}. Type short.
     */
    public static final String ATTR_AGE = "age";

    /**
     * Property constant for {@link #getCheckSum()}/{@link #setCheckSum(long)}. Type long.
     */
    public static final String ATTR_CHECK_SUM = "checkSum";

    /**
     * Property constant for {@link #getLetter()}/{@link #setLetter(char)}. Type char.
     */
    public static final String ATTR_LETTER = "letter";

    /**
     * Property constant for {@link #getFlags()}/{@link #setFlags(byte)}. Type byte.
     */
    public static final String ATTR_FLAGS = "flags";

    /**
     * Property constant for {@link #isDefined()}/{@link #setDefined(boolean)}. Type boolean.
     */
    public static final String ATTR_DEFINED = "defined";

    /** byte property. */
    private byte flags;

    /** boolean property. */
    private boolean defined;

    /** short property. */
    private short age;

    /** char property. */
    private char letter;

    /** int property. */
    private int value;

    /** long property. */
    private long checkSum;

    /** float property. */
    private float saldo;

    /** double property. */
    private double big;

    /** primitive array property. */
    private short[] array;

    /**
     * @return Returns the flags.
     */
    public byte getFlags() {
        return flags;
    }

    /**
     * @param flags The flags to set.
     */
    public void setFlags(byte flags) {
        this.flags = flags;
    }

    /**
     * @return Returns the defined.
     */
    public boolean isDefined() {
        return defined;
    }

    /**
     * @param defined The defined to set.
     */
    public void setDefined(boolean defined) {
        this.defined = defined;
    }

    /**
     * @return Returns the age.
     */
    public short getAge() {
        return age;
    }

    /**
     * @param age The age to set.
     */
    public void setAge(short age) {
        this.age = age;
    }

    /**
     * @return Returns the letter.
     */
    public char getLetter() {
        return letter;
    }

    /**
     * @param letter The letter to set.
     */
    public void setLetter(char letter) {
        this.letter = letter;
    }

    /**
     * @return Returns the value.
     */
    public int getValue() {
        return value;
    }

    /**
     * @param value The value to set.
     */
    public void setValue(int value) {
        this.value = value;
    }

    /**
     * @return Returns the checkSum.
     */
    public long getCheckSum() {
        return checkSum;
    }

    /**
     * @param checkSum The checkSum to set.
     */
    public void setCheckSum(long checkSum) {
        this.checkSum = checkSum;
    }

    /**
     * @return Returns the saldo.
     */
    public float getSaldo() {
        return saldo;
    }

    /**
     * @param saldo The saldo to set.
     */
    public void setSaldo(float saldo) {
        this.saldo = saldo;
    }

    /**
     * @return Returns the big.
     */
    public double getBig() {
        return big;
    }

    /**
     * @param big The big to set.
     */
    public void setBig(double big) {
        this.big = big;
    }

    /**
     * @return Returns the array.
     */
    public short[] getArray() {
        return array;
    }

    /**
     * @param array The array to set.
     */
    public void setArray(short[] array) {
        this.array = array;
    }
}
